package com.example.sourcecodelearning.modules.designpattern.subscribe.impl;

import com.example.sourcecodelearning.modules.designpattern.subscribe.Subscriber;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class EmailSubscriber implements Subscriber {

    private final String email;

    public void update(String message) {
        System.out.println("Send email to " + email + ": " + message);
    }
}
